package com.sunsharing.common;

/**
 * Created with IntelliJ IDEA.
 * User: criss
 * Date: 13-4-2
 * Time: 上午11:17
 * To change this template use File | Settings | File Templates.
 */
public class Constant {
    /**心跳*/
    public static char MSG_TYPE_HEART = 'H';
    /**连接身份*/
    public static char MSG_TYPE_CONNECT = 'C';
    /**请求报文*/
    public static char MSG_TYPE_REQUEST = 'R';
    /**结果报文*/
    public static char MSG_TYPE_RESULT = 'U';

    /**结束MailBox监听*/
    public static char MSG_TYPE_STOP = 'S';
    /**心跳报文*/
    public static String HEART_MSG = "HEART";

    public static String PROTOCOL_MINA = "MINA";
    public static String PROTOCOL_NETTY = "NETTY";
    public static String PROTOCOL_FILE = "FILE";

    public static String MAILBOX_MEM = "mem";

    /**xml注册*/
    public static String REGIEST_XML="XML";

    /**心跳频率单位秒*/
    public static int HEART_INTERVAL = 5;

    /**URL入参 主动模式*/
    public static String URL_PAR_BYCLIENT = "byClient";

    public static String URL_PAR_MAILBOX = "mailbox";
    /**必选参数汇报自己节点ID*/
    public static String URL_PAR_MY_NODE_ID ="myNodeId";
    /**从哪个节点的ID*/
    public static String URL_PAR_FROM_NODE_ID="fromNodeId";
    /**到哪个节点ID*/
    public static String URL_PAR_TO_NODE_ID="toNodeId";
    /**通道名*/
    public static String URL_PAR_CHANNEL_NAME ="proName";
    /**是否客户端连接*/
    public static String URL_PAR_ISCLIENT = "isclient";
    public static String URL_PAR_FILE_LISEN = "fileLisen";

    /**文件夹通道*/
    public static String URL_PAR_ROOT_FILE_PATH = "rootfilepath";
    /**判断文件是否完整*/
    public static String FILE_END_TAG="----CRISS----";


}
